<?php if($voto){ ?>
<div align="left">
	<?php foreach($poll['PollOption'] as $option){?>
			<div class="ranking-option-title" style="text-align:left;"><?php echo $option['title']?></div>
			<div class="ranking-option-bar" style="background-color:red;text-align:left;height:12px;width:<?php echo $option['porcentaje'];?>%;">&nbsp;</div>
			<div style="margin-top:-14px;text-align:left;font-size:11px;"><?php echo $option['porcentaje']?></div>
	<?php }?>
</div>
<?php }else{?>
<?php echo $form->create('Web',array('action'=>'votar_poll'));?>
	<table>
		<tr>
			<td class="poll-title"><?php echo $poll['Poll']['title'];?></td>
		</tr>
		<?php foreach($poll['PollOption'] as $option){?>
			<tr>
				<td>
					<div class="formRadio">
						<input type="radio" name="data[Poll][option]" value="<?php echo $option['id']?>"  style="cursor:pointer;" class="poll-radio"><?php echo $option['title']?></input>
						<?php echo $form->input('Poll.id',array('type'=>'hidden','value'=>$poll['Poll']['id']));?>
					</div>
				</td>
			</tr>
		<?php }?>
	</table>
<?php echo $form->end('Votar');?>
<?php }?>

